
export const sendChatType = {
  type: 'chat',
  method: 'send'
}



class messageEntityBuilder {
  constructor(type , method , data) {
    this.type = type
    this.method = method
    this.data = data
  }

  type = null

  method = null

  data = null



  static sendMessageEntity(data) {
    return new messageEntityBuilder( 'chat' , 'send' ,data)
  }

  static initSession() {
    return new messageEntityBuilder( 'session' , 'init' , null)
  }




}

export default messageEntityBuilder

